<?php


function id_region($i){
     switch ($i) {
    case  "Alsace":
        return 0; 
            break;

    case "Aquitaine":
        return 1; 
            break;
case "Auvergne":
         return 2;
            break;

     case  "Basse-Normandie":
        return 3; 
             break;

    case "Bretagne":
        return 4; 
            break;


    case "Centre":
         return 5 ;
            break;

case "Champagne-Ardenne":
        return 6; 
        break;

    case "Corse":
        return 7; 
            break;


    case "Franche-Comté":
         return 8; 
            break;

case "Haute-Normandie":
        return 9; 
        break;

    case "Île-de-France":
        return 10; 
            break;


    case  "Languedoc-Roussillon":
         return 11; 
            break;

case  "Limousin":
        return 12; 
        break;

    case "Lorraine":
       return 13; 
            break;


    case "Midi-Pyrénées":
         return 14; 
            break;

case  "Nord-Pas-de-Calais":
        return 15; 
        break;

    case "Pays de la Loire":
        return 16; 
            break;


    case "Picardie":
         return 17; 
            break;

        case "Poitou-Charentes":
         return 18; 
                break;

case "Provence-Alpes-Côte d'Azur":
        return 19; 
        break;

    case "Rhône-Alpes":
        return 20; 
            break;


}

    
    
}
?>
